package edu.cmu.atlub.api;

import java.io.IOException;

import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.DefaultHttpClient;
import org.json.JSONObject;

public class SampleAPI extends BaseAPI {
    static final String SAMPLE_API_URL = "https://stream.twitter.com/1.1/statuses/sample.json";
    
    public JSONObject getOneJSON() throws ClientProtocolException, IOException {
	HttpClient httpClient = new DefaultHttpClient();
	HttpGet httpGet = new HttpGet(SAMPLE_API_URL);
	HttpResponse httpResponse = httpClient.execute(httpGet);
	HttpEntity entity = httpResponse.getEntity();
	
	if (entity != null) {
	    
	}
	
	return null;
    }
}
